package com.zretc.support.dao;
import com.zretc.support.entity.Praise;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

@Repository
public interface PraiseDao extends JpaRepository<Praise,Integer>, JpaSpecificationExecutor<Praise>,
        CrudRepository<Praise,Integer>, Serializable {

    Praise findPraiseByReplyIdAndUserId(int replyId,String userId);

    List<Praise> findPraiseByReplyId(int replyId);

}
